package com.bolt.report.engine.calculator;

import com.bolt.report.engine.BindData;
import com.bolt.report.engine.Calculator;
import com.bolt.report.engine.fill.FillContext;
import com.bolt.report.engine.model.Cell;
import com.bolt.report.engine.model.Expression;

public class RowNumCalculator implements Calculator {

    @Override
    public Object evaluate(FillContext context, BindData data, Expression.CalculatorExpression expr, Cell cell) {
        return cell.getRowIndex();
    }
}